package net.monare.mifss.admin.ui.wiz.cards;

import net.monare.mifss.MifssMessages;
import net.monare.mifss.admin.ui.mod.PoolDefUiModule;
import net.monare.mifss.configurations.pojo.ContentPoolDef;

public class StoragePoolCard extends BaseWizardCard implements CardValidation {

	private static final long serialVersionUID = 8707155130408393223L;

	private PoolDefUiModule poolDefUiModule;

	public StoragePoolCard() {

		super(MifssMessages.getMessage("title.add.storage.wizard.card.1"), "POOL_CARD");

		poolDefUiModule = new PoolDefUiModule();
		addFormComponent(poolDefUiModule);

	}

	public ContentPoolDef getContentPoolDef() {
		return poolDefUiModule.getContentPoolDef();
	}

	public boolean isCardValid() {
		if (getContentPoolDef() != null) {
			return true;
		} else {
			return false;
		}
	}

	public void validateCard() {

		// TODO Auto-generated method stub

	}
}
